home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19941031-19941221 / 000297_news@columbia.edu_Tue Nov 29 14:02:01 1994.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA26425
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 29 Nov 1994 09:02:06 -0500
  3. Received: by apakabar.cc.columbia.edu id AA14552
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 29 Nov 1994 09:02:04 -0500
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: Re: MS-DOS 3.1.3 problems
  9. Date: 29 Nov 1994 14:02:01 GMT
  10. Organization: Columbia University
  11. Lines: 49
  12. Message-Id: <3bfc8p$e68@apakabar.cc.columbia.edu>
  13. References: <3bdfu2$qe6@news.cais.com>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  16.  
  17. In article <3bdfu2$qe6@news.cais.com>,  <pifer@cais.cais.com> wrote:
  18. > When we used V 3.11 we set up two macros for two purposes: 1) to
  19. > download a file using the terminalr define and 2) to download a file
  20. > and execute a local PC application. The following two lines are out of
  21. > the mskermit.ini file:
  22. >
  23. >  define terminalr RECEIVE, CONNECT
  24. >  define terminals RECEIVE graph.dat, RUN type graph.dat | grafdraw.exe, 
  25. >  FINISH, CONNECT
  26. >
  27. > The first define, it appears, can be easily be done by the new 
  28. > built-in command. However, I do not see how the second would be done.
  29. >
  30. You can do absolutely anything with APC, but there are always risks when
  31. computer A lets applications on computer B issue commands to it.  That's
  32. why we have three levels of security on APCs.  By default, they are not
  33. allowed at all, for paranoia's sake, since almost any command, when
  34. issued maliciously, might be harmful.  So the MS-DOS Kermit user must
  35. issue "set terminal apc on" to enable the APC mechanism at all.
  36.  
  37. This is a change from version 3.13, where TERMINAL APC was ON by
  38. default, due to user feedback.  However, TERMINAL APC ON only allows
  39. what are deemed "safe" commands (such as file transfer commands), and
  40. disallows commands that are by their very nature unsafe (such as DELETE
  41. and RUN).  That's why your second example doesn't work.  To allow RUN
  42. commands in APCs, the MS-DOS Kermit user must SET TERMINAL APC
  43. UNCHECKED, which is obviously risky.
  44.  
  45. There is, however, still a TERMINALR/TERMINALS-like mechanism in MS-DOS
  46. Kermit, namely the PRODUCT macro, which allows the host application to
  47. invoke a user-defined macro, and even pass arguments to it.  See pages
  48. 181-182 of "Using MS-DOS Kermit".
  49.  
  50. >Also, does C-Kermit V 188 contain the APC command set or will we
  51. >have to get V 189?
  52. >
  53. Any application can issue an APC command.  It just sends ESC,
  54. underscore, text, ESC, backslash.  In C-Kermit 5A(188) you can
  55. easily define a macro to do this:
  56.  
  57.   define apc echo \27_\%1\27\92
  58.  
  59. which you can use like this:
  60.  
  61.   apc { first command, second command, etc }
  62.  
  63. Of course it's always better to run an up-to-date version of C-Kermit.
  64.  
  65. - Frank